<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link rel="favicon" href="<?php echo _compute_public_path('favicon', 'images', 'ico', true);  ?>"/> 
<link rel="shortcut icon" href="<?php echo _compute_public_path('favicon', 'images', 'ico', true);  ?>" />
<link rel="icon" href="<?php echo _compute_public_path('favicon', 'images', 'ico', true);  ?>" />
<title>MES Utility Billing System</title>
<head>
<?php include_javascripts() ?>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
<?php use_helper ('Form','Javascript','Object') ?>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<?php //if ($sf_user->isAuthenticated()): ?>
	<link href="<?php echo _compute_public_path('style', 'css', 'css', false);  ?>" rel="stylesheet" type="text/css" />
<?php //else: ?>
	<link href="<?php //echo _compute_public_path('styles', 'css', 'css', false);  ?>" rel="stylesheet" type="text/css" />
<?php //endif; ?>

<link href="<?php echo _compute_public_path('chromestyle', 'css', 'css', false);  ?>" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<?php echo _compute_public_path('chrome', 'js', 'js', false);  ?>"></script>
<script language="JavaScript" src="<?php echo _compute_public_path('livevalidation_standalone.compressed', 'js', 'js', false);  ?>"></script>
<script language="JavaScript" src="<?php echo _compute_public_path('json2', 'js', 'js', false);  ?>"></script>
</head>

<body>
<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">&nbsp;</div>
          
            <div id="header-text">Welcome | <?php echo link_to('Change Password','Home/index')?></div>
            
			<div id="menu">
				<div class="chromestyle" id="chromemenu">
                <ul>
                	<li><?php echo link_to('Home','Home/index')?></li> <!--class="current_page_item"--> 
                    <li><?php echo link_to('Billing','Billing/index')?></li>
                    <li><?php echo link_to('Settings','Home/index', 'rel="dropmenu2"')?></li>
                    <li><?php echo link_to('Reports','Home/index', 'rel="dropmenu3"')?></li>
                </ul>
                </div>
                
                <div id="dropmenu1" class="dropmenudiv" style="width: 150px;">
					<?php echo link_to('Officer Bill','Billing/addOfficerBill')?>
					<?php echo link_to('JCO Bill','Billing/addJcoBill')?>
					<?php echo link_to('Soldier Bill','Billing/addSoldierBill')?>
					<?php echo link_to('Civil Bill','Billing/addCivilBill')?>
                    <?php echo link_to('Commercial Bill','Billing/addCommercialBill')?>
                </div>
                
                <div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
					<?php echo link_to('Station','Station/list')?>
					<?php echo link_to('Building','Building/list')?>
					<?php echo link_to('Occupant','Occupant/list')?>
					<?php echo link_to('Tariff','ElecTarrif/list')?>
                    <?php echo link_to('Calculation Values','CalcValue/list')?>
                    <?php echo link_to('Users','User/list')?>
                </div>
                
                <div id="dropmenu3" class="dropmenudiv" style="width: 150px;">
					<?php echo link_to('View RoR','Report/getRor')?>
                    <?php echo link_to('Unpay Bill','Billing/listPaidBill')?>
				</div>
			
			<script type="text/javascript">
                cssdropdown.startchrome("chromemenu")
            </script>
			</div>
		</div>
	</div>

<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post">
                    	<?php if ($sf_user->hasFlash('SUCCESS_MESSAGE')): ?>
							<div class="success_bar">
							<?php echo $sf_user->getFlash('SUCCESS_MESSAGE');?>
                            </div>
						<?php endif; ?>
	
	
						<?php if ($sf_user->hasFlash('ERROR_MESSAGE')): ?>
                                    <div class="error_bar">
                                        <?php echo $sf_user->getFlash('ERROR_MESSAGE');?>
                                    </div>
                        <?php endif; ?>
                        <div style="clear: both;">&nbsp;</div>

						<?php echo $sf_content ?>

					</div>
					
					
					<div style="clear: both;">&nbsp;</div>
				</div>
				<!-- end #content -->
	
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	<p>Copyright (c) 2011 onwards - MES Utility Billing System <!--<img src="<?php echo _compute_public_path('technologyPartner', 'images', 'png', true);?>" style="vertical-align:top; border:none;"/>--></p>  
</div> 
<!-- end #footer -->


</body>
</html>